package com.edwin.websitebe.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.edwin.websitebe.mapper.BoxGameMapper;
import com.edwin.websitebe.mapper.GameMapper;
import com.edwin.websitebe.model.BoxGame;
import com.edwin.websitebe.model.Game;
import com.edwin.websitebe.service.BoxGameService;
import com.edwin.websitebe.service.GameService;
import org.springframework.stereotype.Service;

@Service
public class BoxGameServiceImpl extends ServiceImpl<BoxGameMapper, BoxGame> implements BoxGameService {
    @Override
    public IPage<BoxGame> page(String gameName, Long typeId, Long page, Long pageSize) {
        IPage<BoxGame> list = this.getBaseMapper().page(Page.of(page, pageSize), gameName, typeId);
        return list;
    }
}
